﻿/*
 * Created by SharpDevelop.
 * User: David
 * Date: 14/12/2009
 * Time: 6:30 PM
 * 
 * This is where you code your bot!
 * 
 * 
 */
using System;
using System.Collections.Generic;
//using BWAPI;
using System.IO;
using StarcraftBot.Wrapper;
using StarcraftBot;
using System.Threading;

namespace StarcraftBot

{
    
	/// <summary>
	/// Bot AI Class. Override the methods from MonoStarcraftBotBase as needed.
	/// </summary>
	public class MonoStarcraftBot: MonoStarcraftBotBase	{
		public override void onStart() {
            BotEvents.OnStart();
		}

        public override void onFrame() {
            BotEvents.OnFrame();
        }

        public override Boolean onSendText(string text) {
            return BotEvents.OnSendText(text);
        }

        public override void onUnitCreate(BWAPI.Unit unit) {
            BotEvents.OnUnitCreate(new Unit(unit));
        }

        public override void onUnitDestroy(BWAPI.Unit unit) {
            BotEvents.OnUnitDestroy(new Unit(unit));
        }

        public override void onUnitHide(BWAPI.Unit unit) {
            BotEvents.OnUnitHide(new Unit(unit));
        }

        public override void onUnitMorph(BWAPI.Unit unit) {
            BotEvents.OnUnitMorph(new Unit(unit));
        }

        public override void onUnitShow(BWAPI.Unit unit) {
            BotEvents.OnUnitShow(new Unit(unit));
        }

        public override void onEnd() {
            BotEvents.OnEnd();
        }
        

	}
}
